PARSER=parser
DUG=debug
HTTP_SERVER=http_server
CC=g++

.PHOMY:all
all:$(PARSER) $(DUG) $(HTTP_SERVER)

$(PARSER):parser.cc
	$(CC) -o $@ $^ -lboost_system -lboost_filesystem -std=c++11

$(DUG):debug.cc
	$(CC) -o $@ $^ -ljsoncpp -std=c++11

$(HTTP_SERVER):http_server.cc
	$(CC) -o $@ $^ -ljsoncpp -lpthread -std=c++11

.PHOMY:clean
clean:
	rm -rf $(PARSER) $(DUG) $(HTTP_SERVER)
